package com.zwh.mapper;

import com.zwh.entity.Patient;
import com.zwh.entity.Question;
import com.zwh.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    //根据名字查询用户
    User findByname(String name);
    //在数据库中保存用户信息
    void save(User user);

    void savepatient(Patient patient);

    //病人预约信息
    List<Patient> lists();

    //问题储存
    void questionsave(Question question);

}
